package fr.umlv.ig.event;

import java.util.EventObject;

/**
 * Our event object with a method getType().
 * @author jenseric
 * @author william
 *
 */
@SuppressWarnings("serial")
public abstract class EventObjectWithType extends EventObject  {
	
	private final int eventType;

	/**
	 * Initializes a eventObjectWithType.
	 * @param source the source of the event.
	 * @param eventType the type of the event.
	 */
	protected EventObjectWithType(Object source,int eventType) {
		super(source);
		this.eventType = eventType;
	}

	/**
	 * Returns the type of the event .
	 * @return the type of the event.
	 */
	public int getEventType() {
		return eventType;
	}
}
